/**
 * 
 */
package com.hanhai.zrb.model.project.enums;


public enum ProjectRelationTypeEnums {

	RELATE_PRO(1,"关联项目"),
	RELATE_NEWS(2,"关联新闻")
;
	
	private Integer code;
	
	private String value;
	
	public Integer getCode() {
		return code;
	}

	public String getValue() {
		return value;
	}

	private ProjectRelationTypeEnums(int code,String value){
		this.code = code;
		this.value = value;
	}
	
	public static String  getValueByCode(int code){
		for(ProjectRelationTypeEnums status:ProjectRelationTypeEnums.values()){
			if(status.getCode() == code){
				return status.getValue();
			}
		}
		return null;
	}
}
